</head>

 <body>
	<?php
		if(__login__==1){
	?>
	<div id="sidebar">
		<div id="minibar" class="common">
			<a href="###" id="open"><img src="_skins/tplimgs/icon-mini-genius.png" border="0" /></a>
			<a href="###" id="close"><img src="_skins/tplimgs/icon-mini-close.png" border="0" style="margin-top:50px;"/></a>
		</div>
		<div id="list" class="common" style="display:none;">
			<ul id="listul" style="float:left;" style="display:none" >
				<li id="list_chat">
					<a href="###">聊天室</a>
					 <div id="main">
						<div id="main_left" style="float:left;margin:0px auto;">
							<div id="chat_m">Loading...</div>
							 <div id="main_l_from">
							 <form method="post" action="javascript:void(0);">
								<!--昵称：<input type="text" name="user" id="user" size="8" value="<?php echo $_SESSION['user']?>">-->
								<!--<input type="text" name="message" id="message" style="width:250px;">-->
								<input type="hidden" name="user" id="user" size="8" value="<?php echo __user_name__; ?>">
								<textarea  name="message" id="message" rows="2" cols="42"></textarea>
								<input type="submit" name="sub" value="发言" id="sub">
							 </div>
							 </FORM>
						</div>

				</li>
				<!--<li>工具栏</li>
				<li>发布房源</li>
				<li>小游戏</li>-->
			</ul>
		</div>
	</div>
	<?php } ?>

  <ul id="bd_main">
	<li>
		<div class="div_top">
			<div id="logo" class="logo left"><a href="index.php"><img src="_skins/tplimgs/logo.jpg" width="149" height="78" border="0"/></a></div>
			<div id="top_words">
				<span style="float:right;margin-right:25px;"><a onclick="this.style.behavior='url(#default#homepage)';this.setHomePage(location.href);" href="###">设为主页</a>&nbsp;&nbsp;<a onclick="window.external.addFavorite('http://www.carzymusic.com','疯狂音乐网');"  href="###">加入收藏</a></span>
				<span class="city">南通站</span><a href="###" style="margin-left:10px;" id="morecitylink">[切换城市]</a>
				<div id="morecity" style="display:none;"><p>更多城市敬请期待<a href="###" style="margin-left:60px;">关闭</a></p><br>如有意向加盟，请咨询房源热线 <b>0513-89012345</b></div>
			</div>

			<div id="loginarea">
				<!-- IF logined==0 -->
				<div id="loginbefore" style="float:right;margin-right:40px;">
					<span>手机号/用户名</span>&nbsp;&nbsp;<input type="text" value="" id="l_username" name="l_username" class="login_input" />&nbsp;&nbsp;
					<span>密码</span>&nbsp;&nbsp;<input type="password" value="" id="l_password" name="l_password"  class="login_input" />&nbsp;&nbsp;
					<input type="button" value="登录" id="loginbtn" class="login_btn">&nbsp;&nbsp;<a href="register.php" style="margin-left:20px;font-size:12px;">免费注册</a>
				</div>
				<!-- ELSE -->
					<?php if(__user_prop__=="0"){ ?>
				<div id="loginafter" style="float:right;margin-right:40px;">
					<span>欢迎您，{login_user_name}!</span>&nbsp;&nbsp;&nbsp;&nbsp;
					<a href="agent_admin.php">我的风搜网</a>&nbsp;&nbsp;&nbsp;&nbsp;
					<!--<a href="sell_house.php">收藏房源</a>
					<a href="rent_house.php">我的消息</a>-->
					<a href="logout.php" style="color:#666;">退出</a>
				</div>
				<?php }else{ ?>
				<div id="loginafter" style="float:right;margin-right:40px;">
					<span>欢迎您，{login_user_name}!</span>
					<a href="user_admin.php">我的风搜网</a>
					<!--<a href="user_admin.php">我的消息</a>
					<a href="sell_house.php">收藏房源</a>-->
					<a href="logout.php">退出</a>
				</div>
				<?php } ?>
				<!-- ENDIF logined -->
				<span class="login_tips">登录后即可查询详情</span>
			</div>


		</div>
	</li>
	<li style="height:40px;">
		<div id="navigator" class="right">
			<ul class="nv_ul" style="float:left;">
				<li class="{indexcls}"><a href="index.php">二手房源</a></li>
				<li><a href="broker.php" class="{brokercls}">一手房源</a></li>
				<!--<li><a href="###" class="{}">求购求租</a></li>-->
				<li><a href="###" class="{}">贷款服务商</a></li>
				<li><a href="###" class="{}">装潢服务商</a></li>
				<!--<li><a href="###" class="{}">税收政策</a></li>-->
				<li><a href="bbs/">论坛</a></li>
				<!--<li><a href="###">联系我们</a></li>-->
			<!--	<li style="float:right;width:210px;margin-right:64px;"><span style="font-size:12px;">房源热线</span>&nbsp;&nbsp;<span style="font-size:18px;font-family:tahoma;"><b>0513-89012345</b></span></li>-->
			</ul>
			
		</div>
	</li>
